package com.qhx.admin.controller.system;

import com.qhx.common.model.AjaxResult;
import com.qhx.admin.service.CaptchaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class CaptchaController
{
    @Autowired
    private CaptchaService captchaService;

    @RequestMapping(path = "/get/captcha")
    public AjaxResult getCaptcha(){
        return captchaService.getCaptcha();
    }

}
